<script type="application/javascript" src="/lib/jquery.min.js"></script>
<script type="application/javascript" src="/public/js/util.js"></script>

<div class="table_content_div">
    <table class="sui-table table-zebra attend_table leader_table_body table-bordered">
        <thead>
        <tr>
            <th>时间</th>
            <th>出勤人次</th>
            <th>请假人次</th>
            <th>迟到人次</th>
            <th>旷课人次</th>
            <th>早退人次</th>
        </tr>
        </thead>
        <tbody>
            <% statisticsList.forEach(function(statistics, index) { %>
                <tr>
                <td>
                <%  if ( period == 'month' || period == 'week' ) { 
                        statistics.day.startTime.setDate(statistics.day.startTime.getDate() + 1);
                %>
                    <%=lib.util.formatDate(statistics.day.startTime)%> - 
                    <%=lib.util.formatDate(statistics.day.endTime)%>
                <%  
                    }
                    else {
                %>
                    <%=lib.util.formatDate(statistics.day.endTime)%>
                <% } %>
                </td>
                <td><%=statistics.statistics.attendCount%></td>
                <td><%=statistics.statistics.restCount%></td>
                <td><%=statistics.statistics.lateCount%></td>
                <td><%=statistics.statistics.absenceCount%></td>
                <td><%=statistics.statistics.earlyCount%></td>
                </tr>
            <% }); %>
        </tbody>
    </table>
</div>
